package com.chenxiao.responsibilityChain.design;

/**
 * @Author: CX
 * @Date: Created in  2023/05/28 16:35
 * @version: v1.0
 * @Description: TODO
 **/
public class CFO extends DesignModel {
    CFO(String name) {
        super(name);
    }

    @Override
    public void approve(int amount) {
        if(amount >= 10000){
            System.out.println("审批失败，【"+name+"】");
        }else{
            System.out.println("审批成功，【"+name+"】");
        }
    }
}
